const mongoose = require("mongoose")
mongoose.connect("mongodb://127.0.0.1/mongoose_test")
mongoose.connection.once("open", () => {
    console.log("mongodb已连接");
})
mongoose.disconnect();
mongoose.connection.once("close", () => {
    console.log("mongodb已断开连接");
})
